using System;
using System.Drawing;

namespace GDI
{
    public static class SizeFExtentions
    {

        public static SizeF Add(this SizeF p1, SizeF p2)
        {
            return new SizeF(p1.Width + p2.Width, p1.Height + p2.Height);
        }

        public static SizeF Add(this SizeF p1, float Width, float Height)
        {
            return new SizeF(p1.Width + Width, p1.Height + Height);
        }

        public static SizeF Substract(this SizeF p1, SizeF p2)
        {
            return new SizeF(p1.Width - p2.Width, p1.Height - p2.Height);
        }

        public static SizeF Substract(this SizeF p1, float Width, float Height)
        {
            return new SizeF(p1.Width - Width, p1.Height - Height);
        }

        public static SizeF Multiply(this SizeF p1, float X)
        {
            return new SizeF(p1.Width * X, p1.Height * X);
        }

        public static SizeF Devide(this SizeF p1, float X)
        {
            return new SizeF(p1.Width / X, p1.Height / X);
        }

    }
}